﻿Object.extend(Element, {
 getWidth: function(element) {
 element = $(element);
 return element.offsetWidth;
 },
 setWidth : function(element, w) {
 element = $(element);
 element.style.width = w + "px";
 },
 setHeight : function(element, h) {
 element = $(element);
 element.style.height = h + "px";
 },
 setTop : function(element, t) {
 element = $(element);
 element.style.top = t + "px";
 },
 hideAll: function() {
 for (var i = 0; i < arguments.length; i++) {
 var element = $(arguments[i]);
 element.style.display = 'none';
 }
 },
 showAll: function() {
 for (var i = 0; i < arguments.length; i++) {
 var element = $(arguments[i]);
 element.style.display = '';
 }
 }
});
